package com.yd.app.mapper;

import com.yd.app.mapper.provider.TranslateProvider;
import com.yd.domain.business.Translate;
import com.yd.domain.business.TranslateSearch;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018/4/24.
 */
@Repository
public interface TranslateMapper {

    @SelectProvider(method = "searchList", type = TranslateProvider.class)
    List<TranslateSearch> getList(@Param("startRow") int startRow, @Param("pageSize") int pageSize);

    @SelectProvider(method = "searchCount", type = TranslateProvider.class)
    int getCount();

}
